package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingPlanMapper {
    public List<NursingPlan> listAll();

    void add(NursingPlan nursingPlan);

    Page<NursingPlanVo> selectByPage(String name, Integer status);

    NursingPlan getById(long id);

    void update(NursingPlan nursingPlan);

    void deleteById(long id);

    void changeStatus(long id, long status);

    Integer getIdByname(String planName);
}
